import request from '@/utils/request'

// 查询article1列表
export function listArticle1(query) {
  return request({
    url: '/article1/article1/list',
    method: 'get',
    params: query
  })
}

// 查询article1详细
export function getArticle1(id) {
  return request({
    url: '/article1/article1/' + id,
    method: 'get'
  })
}

// 新增article1
export function addArticle1(data) {
  return request({
    url: '/article1/article1',
    method: 'post',
    data: data
  })
}

// 修改article1
export function updateArticle1(data) {
  return request({
    url: '/article1/article1',
    method: 'put',
    data: data
  })
}

// 删除article1
export function delArticle1(id) {
  return request({
    url: '/article1/article1/' + id,
    method: 'delete'
  })
}
